# -*- coding: utf-8 -*-
#coding:utf-8
from django.contrib.admin import forms

import models
from django.contrib import admin

from comment.models import Comment
from zhp_blog.models import Article,Message,Category

# Register your models here.

class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title','edit_time','category_id')

class CategoryAdmin(admin.ModelAdmin):
    list_display = ('category_name','category_id','edit_time')


class CommentAdmin(admin.ModelAdmin):
    list_display = ('body','id','created')

admin.site.register(Article,ArticleAdmin)
admin.site.register(Message)
admin.site.register(Category,CategoryAdmin)
admin.site.register(Comment,CommentAdmin)